<?php

namespace App\Api\V1\Controllers;

use App\Http\Controllers\Controller;

class UploadController extends BaseController
{
    /**
     * 方法路由器
     * @access protected
     * @return void
     */
    protected static function initMethod()
    {
        self::$route = [
            // 获取上传模块列表
            'get.upload.module'   => ['getUploadModule'],
            // 获取上传地址
            'get.upload.url'      => ['getUploadUrl'],
            // 获取上传Token
            'get.upload.token'    => ['getUploadToken'],
            // 替换上传资源
            'replace.upload.item' => ['replaceUploadItem'],
            // 资源上传请求(第三方OSS只能单文件直传方式上传)
            'add.upload.list'     => ['addUploadList'],
            // 接收第三方推送数据
            'put.upload.data'     => ['putUploadData'],
        ];
    }
}
